if (!jsx3.lang.Class.forName("ux.cdb.admin.loan.loanWizard.LoanBuilder")) {
/**
 * Define the <code>name of class</code> class.
 * This class inherit from <code>jsx3.gui.Block<code> GUI class.
 */
jsx3.Class.defineClass(
    "ux.cdb.admin.loan.loanWizard.LoanBuilder",
    jsx3.gui.Dialog,
    null,
    function (loanBuilder) {
      /**
       * This method will be called after UI file has deserialized.
       */
      loanBuilder.prototype.onAfterDeserialize = function() {
		this.wizard = this.get('steppedWizard');
        return;
//        var me = this;
//        var wizardPanel1 = this.getDescendantOfName('wizardPanel1');
//        ux.megatron.Main.loadUIResourceAsync(wizardPanel1, "ux.cdb.admin", "ux/cdb/admin/system/user/userWizard/step1/ui/userInfoPane.xml", me, me.onWizardLoaded);
      }
      
      loanBuilder.prototype.onWizardLoaded = function(){
        //alert('OK!');
      }
      
      loanBuilder.prototype.onClose = function() {
        this.doClose();
      }    
	
	loanBuilder.prototype._lockStudent = function(partyId){
/* @JSC :: begin DEBUG */
		jsx3.log('StudentChoice#_lockStudent partyId : ' + partyId);
/* @JSC :: end */
		var me = this;
		ux.megatron.util.Dwr.callDwr("AcceptRetailStudentLoanAppUCC", "tryLockAppStudent", [partyId], this, function(data){
			jsx3.log('StudentChoice#data.res.flag : ' + data.res.flag);
			if(data.res.flag == 1){
				/* ux.megatron.Dialog.alert(ux.megatron.Main.getServer().getDynamicProperty('@addin@Dialog AlertDefaultTitle'),
					data.res.msg, function(dialog){dialog.doClose();}); */
				me.wizard.doNext();
				jsx3.log('StudentChoice#_lockStudent lockStudent Success!');
			}else if(data.res.flag == 3){
				ux.megatron.Dialog.alert(ux.megatron.Main.getServer().getDynamicProperty('@addin@Dialog AlertDefaultTitle'),
					data.res.msg, function(dialog){
						dialog.doClose();
						me.wizard.getDescendantsOfType(ux.cdb.admin.loan.loanWizard.StudenChoiceContent)[0].onSearch();
					});
				jsx3.log('StudentChoice#_lockStudent lockStudent Failed!');
			}
		});
	};
	
	loanBuilder.prototype._unlockStudent = function(partyId){
		jsx3.log('StudentChoice#_unlockStudent partyId : ' + partyId);
		var individualStatusCode = this.individualStatusCode || null;
/* @JSC :: begin DEBUG */
		jsx3.log('partyId['+partyId+'], individualStatusCode['+individualStatusCode+']');
/* @JSC :: end */
		ux.megatron.util.Dwr.callDwr("AcceptRetailStudentLoanAppUCC", "unlockAppStudent", [partyId, individualStatusCode], this, function(data){
			if(data.res.flag == 1)
				jsx3.log('StudentChoice#_unlockStudent lockStudent Success!');
			else
				jsx3.log('StudentChoice#_unlockStudent lockStudent Failed!');
		});
	};
	
    }
  );
}